@for $i from 1 through 4 {
    .theme-#{$i} {
        // 通用按钮
        .el-button {
            min-width: 82px;
            min-height: 32px;
            border: 1px solid nth($button_normal_defalut_border, $i);
            color: nth($button_normal_defalut_font, $i);
            background: nth($button_normal_defalut, $i);
            font-size: 12px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            &:hover{
                // color: nth($button_normal_defalut_font, $i);
                border-color: #9AA8CA;
                // background-color: #ffffff;
            }
            &:focus {
                border-color: #9AA8CA;
                background: nth($button_focus_default, $i);
            }
            &:active {
                border-color: nth($button_normal_click, $i);
                outline: 0;
                background: nth($button_focus_default, $i);
            }
            &:disabled, .is-disabled, .is-disabled:focus, .is-disabled:hover {
                color: nth($button_normal_disabled_font, $i);
                cursor: not-allowed;
                background-image: none;
                background-color: nth($button_normal_disabled_background, $i);
                border-color: nth($button_normal_disabled_border, $i);
            }
        }
        // 主要按钮
        .el-button--primary{
            color: #4a5c7f;
            background: nth($button_focus_default, $i);
            border-color: nth($button_focus_default_border, $i);
            &:hover, &:focus{
                color: nth($button_normal_defalut_font, $i);
                background-color: nth($button_focus_hover, $i);
                border-color: nth($button_focus_hover, $i);
            }
            &:active, .is-active{
                color: #b0b0b0;
                background-color: nth($button_focus_click, $i);
                border-color: nth($button_focus_click, $i);
                outline: 0;
            }
            &:disabled, .is-disabled, .is-disabled:active, .is-disabled{
                color: #bfbfbf;
                background-color: nth($button_focus_disabled, $i);
                border-color: nth($button_focus_disabled, $i);
            }
            &.is-disabled:hover{
                color: #bfbfbf;
                background-color: nth($button_focus_disabled, $i);
                border-color: nth($button_focus_disabled, $i);
            }
        }
        // 成功按钮
        .el-button--success {
            color: #4a5c7f;
            background-color: rgba(nth($assist_color_1, $i), 1);
            border-color: rgba(nth($assist_color_1, $i), 1);
            &:hover, &:focus {
                color: #4a5c7f;
                background-color: rgba(nth($assist_color_1, $i), $mouseover_opacity);
                border-color: rgba(nth($assist_color_1, $i), $mouseover_opacity);
            }
            &:active, .is-active{
                color: #4a5c7f;
                background-color: rgba(nth($assist_color_1, $i), 1);
                border-color: rgba(nth($assist_color_1, $i), 1);
                outline: 0;
            }
            &:disabled, .is-disabled, .is-disabled:active, .is-disabled:focus, .is-disabled:hover{
                color: #bfbfbf;
                cursor: not-allowed;
                background-image: none;
                background-color: rgba(nth($assist_color_1, $i), $disabled_opacity);
                border-color: rgba(nth($assist_color_1, $i), $disabled_opacity);
            }
        }
        //  警告按钮
        .el-button--warning {
            color: #4a5c7f;
            background-color: rgba(nth($assist_color_2, $i), 1);
            border-color: rgba(nth($assist_color_2, $i), 1);
            &:hover, &:focus {
                color: #fff;
                background-color: rgba(nth($assist_color_2, $i), $mouseover_opacity);
                border-color: rgba(nth($assist_color_2, $i), $mouseover_opacity);
            }
            &:active, .is-active{
                color: #fff;
                background-color: rgba(nth($assist_color_2, $i), 1);
                border-color: rgba(nth($assist_color_2, $i), 1);
                outline: 0;
            }
            &:disabled, .is-disabled, .is-disabled:active, .is-disabled:focus, .is-disabled:hover{
                color: #fff;
                cursor: not-allowed;
                background-image: none;
                background-color: rgba(nth($assist_color_2, $i), $disabled_opacity);
                border-color: rgba(nth($assist_color_2, $i), $disabled_opacity);
            }
        }
        // 危险按钮
        .el-button--danger {
            color: #4a5c7f;
            background-color: rgba(nth($assist_color_4, $i),1);
            border-color: rgba(nth($assist_color_4, $i), 1);
            &:hover, &:focus {
                color: #fff;
                background-color: rgba(nth($assist_color_4, $i), $mouseover_opacity);
                border-color: rgba(nth($assist_color_4, $i), $mouseover_opacity);
            }
            &:active, .is-active{
                color: #fff;
                background-color: rgba(nth($assist_color_4, $i), 1);
                border-color: rgba(nth($assist_color_4, $i), 1);
                outline: 0;
            }
            &:disabled, .is-disabled, .is-disabled:active, .is-disabled:focus, .is-disabled:hover{
                color: #fff;
                cursor: not-allowed;
                background-image: none;
                background-color: rgba(nth($assist_color_4, $i), $disabled_opacity);
                border-color: rgba(nth($assist_color_4, $i), $disabled_opacity);
            }
        }
        // 信息按钮
        .el-button--info {
            color: #4a5c7f;
            background-color: rgba($font_color_assist, 1);
            border-color: rgba($font_color_assist, 1);
            &:hover, &:focus {
                color: #4a5c7f;
                background-color: rgba($font_color_assist, $mouseover_opacity);
                border-color: rgba($font_color_assist, $mouseover_opacity);
            }
            &:active, .is-active{
                color: #4a5c7f;
                background-color: rgba($font_color_assist, 1);
                border-color: rgba($font_color_assist, 1);
                outline: 0;
            }
            &:disabled, .is-disabled, .is-disabled:active, .is-disabled:focus, .is-disabled:hover{
                color: #bfbfbf;
                cursor: not-allowed;
                background-image: none;
                background-color: rgba($font_color_assist, $disabled_opacity);
                border-color: rgba($font_color_assist, $disabled_opacity);
            }
        }
        // 文字按钮
        .el-button--text {
            color: nth($button_focus_default, $i);
            background: 0 0;
            padding-left: 0;
            padding-right: 0;
            border: none;
            &:hover, &:focus {
                color: nth($button_focus_hover, $i);
                border-color: transparent;
                background-color: transparent
            }
            &:active, .is-active{
                color: nth($button_focus_click, $i);
                background-color: transparent
            }
            &:disabled, .is-disabled, .is-disabled:active, .is-disabled:focus, .is-disabled:hover{
                border-color: none;
                color: nth($button_normal_disabled_font, $i);
                cursor: not-allowed;
                background-image: none;
                background-color: nth($button_normal_disabled_background, $i);
                border-color: nth($button_normal_disabled_border, $i);
            }
        }
        //朴素按钮集合（plain）
        .el-button.is-plain{
            border: 1px solid nth($button_normal_defalut_border, $i);
            color: nth($button_normal_defalut_font, $i);
            &:hover, &:focus {
                color: nth($button_normal_hover, $i);
                border-color: nth($button_normal_hover, $i);
                background-color: #ffffff;
            }
            &:active {
                color: nth($button_normal_click, $i);
                border-color: nth($button_normal_click, $i);
                outline: 0
            }
            &:disabled, .is-disabled, .is-disabled:focus, .is-disabled:hover {
                color: #bfbfbf;
                cursor: not-allowed;
                background-image: none;
                background-color: #FFF;
                border-color: nth($button_normal_disabled_border, $i);
            }
        }
        .el-button--primary.is-plain{
            color: nth($button_focus_default, $i);
            background-color: rgba(255, 255, 255, 1);
            border-color: nth($button_focus_default, $i);
            &:hover, &:focus{
                color: nth($button_focus_hover, $i);
                background-color: rgba(255, 255, 255, 1);
                border-color: nth($button_focus_hover, $i);
            }
            &:active, .is-active{
                color: nth($button_focus_click, $i);
                background-color: rgba(255, 255, 255, 1);
                border-color: nth($button_focus_click, $i);
                outline: 0;
            }
            &:disabled, .is-disabled, .is-disabled:focus, .is-disabled:hover {
                color: #bfbfbf;
                cursor: not-allowed;
                background-image: none;
                background-color: #FFF;
                border-color: nth($button_focus_disabled, $i);
            }
        }
        .el-button--success.is-plain{
            color: rgba(nth($assist_color_1, $i), 1);
            background-color: rgba(255, 255, 255, 1);
            border-color:  rgba(nth($assist_color_1, $i), 1);
            &:hover, &:focus{
                color:  rgba(nth($assist_color_1, $i), $mouseover_opacity);
                background-color: rgba(255, 255, 255, 1);
                border-color:  rgba(nth($assist_color_1, $i), $mouseover_opacity);
            }
            &:active, .is-active{
                color:  rgba(nth($assist_color_1, $i), 1);
                background-color: rgba(255, 255, 255, 1);
                border-color:  rgba(nth($assist_color_1, $i), 1);
                outline: 0;
            }
            &:disabled, .is-disabled, .is-disabled:focus, .is-disabled:hover {
                color: #bfbfbf;
                cursor: not-allowed;
                background-image: none;
                background-color: #FFF;
                border-color: rgba(nth($assist_color_1, $i), $disabled_opacity);
            }
        }
        .el-button--warning.is-plain{
            color: rgba(nth($assist_color_2, $i), 1);
            background-color: rgba(255, 255, 255, 1);
            border-color:  rgba(nth($assist_color_2, $i), 1);
            &:hover, &:focus{
                color:  rgba(nth($assist_color_2, $i), $mouseover_opacity);
                background-color: rgba(255, 255, 255, 1);
                border-color:  rgba(nth($assist_color_2, $i), $mouseover_opacity);
            }
            &:active, .is-active{
                color:  rgba(nth($assist_color_2, $i), 1);
                background-color: rgba(255, 255, 255, 1);
                border-color:  rgba(nth($assist_color_2, $i), 1);
                outline: 0;
            }
            &:disabled, .is-disabled, .is-disabled:focus, .is-disabled:hover {
                color: #bfbfbf;
                cursor: not-allowed;
                background-image: none;
                background-color: #FFF;
                border-color: rgba(nth($assist_color_2, $i), $disabled_opacity);
            }
        }
        .el-button--danger.is-plain{
            color: rgba(nth($assist_color_4, $i), 1);
            background-color: rgba(255, 255, 255, 1);
            border-color:  rgba(nth($assist_color_4, $i), 1);
            &:hover, &:focus{
                color:  rgba(nth($assist_color_4, $i), $mouseover_opacity);
                background-color: rgba(255, 255, 255, 1);
                border-color:  rgba(nth($assist_color_4, $i), $mouseover_opacity);
            }
            &:active, .is-active{
                color:  rgba(nth($assist_color_4, $i), 1);
                background-color: rgba(255, 255, 255, 1);
                border-color:  rgba(nth($assist_color_4, $i), 1);
                outline: 0;
            }
            &:disabled, .is-disabled, .is-disabled:focus, .is-disabled:hover {
                color: #bfbfbf;
                cursor: not-allowed;
                background-image: none;
                background-color: #FFF;
                border-color: rgba(nth($assist_color_4, $i), $disabled_opacity);
            }
        }
        .el-button--info.is-plain{
            color: rgba($font_color_assist, 1);
            background-color: rgba(255, 255, 255, 1);
            border-color:  rgba($font_color_assist, 1);
            &:hover, &:focus{
                color:  rgba($font_color_assist, $mouseover_opacity);
                background-color: rgba(255, 255, 255, 1);
                border-color:  rgba($font_color_assist, $mouseover_opacity);
            }
            &:active, .is-active{
                color:  rgba($font_color_assist, 1);
                background-color: rgba(255, 255, 255, 1);
                border-color:  rgba($font_color_assist, 1);
                outline: 0;
            }
            &:disabled, .is-disabled, .is-disabled:focus, .is-disabled:hover {
                color: #bfbfbf;
                cursor: not-allowed;
                background-image: none;
                background-color: #FFF;
                border-color: rgba($font_color_assist, $disabled_opacity);
            }
        }
    }
}


.el-button-group>.el-button.is-active,
.el-button-group>.el-button.is-disabled,
.el-button-group>.el-button:active,
.el-button-group>.el-button:focus,
.el-button-group>.el-button:hover {
    z-index: 1
}

.el-button {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: #FFF;
    -webkit-appearance: none;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0;
    margin: 0;
    -webkit-transition: .1s;
    transition: .1s;
    font-weight: 500;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    padding: 9px 16;
    font-size: 12px;
    border-radius: 4px
}
.el-button + .el-button {
    margin-left: 10px;
}

.el-button::-moz-focus-inner {
    border: 0
}

.el-button [class*=el-icon-]+span {
    margin-left: 5px
}

.el-button.is-disabled.el-button--text {
    background-color: transparent
}

.el-button.is-loading {
    position: relative;
    pointer-events: none
}

.el-button.is-loading:before {
    pointer-events: none;
    content: '';
    position: absolute;
    left: -1px;
    top: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    background-color: rgba(255, 255, 255, .35)
}

.el-button.is-round {
    border-radius: 20px;
    padding: 9px 16px
}

.el-button.is-circle {
    border-radius: 50%;
    padding: 12px
}

.el-button--medium {
    padding: 9px 16px;
    font-size: 12px;
    border-radius: 4px
}

.el-button--mini,
.el-button--small {
    font-size: 12px;
    border-radius: 3px
}

.el-button--medium.is-round {
    padding: 9px 16px
}

.el-button--medium.is-circle {
    padding: 10px
}

.el-button--small,
.el-button--small.is-round {
    padding: 7px 16px
}

.el-button--small.is-circle {
    padding: 9px
}

.el-button--mini,
.el-button--mini.is-round {
    padding: 9px 15px
}

.el-button--mini.is-circle {
    padding: 7px
}

.el-button-group {
    display: inline-block;
    vertical-align: middle
}

.el-button-group::after,
.el-button-group::before {
    display: table;
    content: ""
}

.el-button-group::after {
    clear: both
}

.el-button-group>.el-button {
    float: left;
    position: relative
}

.el-button-group>.el-button+.el-button {
    margin-left: 0
}

.el-button-group>.el-button:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0
}

.el-button-group>.el-button:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0
}

.el-button-group>.el-button:first-child:last-child {
    border-radius: 4px
}

.el-button-group>.el-button:first-child:last-child.is-round {
    border-radius: 20px
}

.el-button-group>.el-button:first-child:last-child.is-circle {
    border-radius: 50%
}

.el-button-group>.el-button:not(:first-child):not(:last-child) {
    border-radius: 0
}

.el-button-group>.el-button:not(:last-child) {
    margin-right: -1px
}

.el-button-group>.el-dropdown>.el-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--primary:first-child {
    border-right-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--primary:last-child {
    border-left-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--primary:not(:first-child):not(:last-child) {
    border-left-color: rgba(255, 255, 255, .5);
    border-right-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--success:first-child {
    border-right-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--success:last-child {
    border-left-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--success:not(:first-child):not(:last-child) {
    border-left-color: rgba(255, 255, 255, .5);
    border-right-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--warning:first-child {
    border-right-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--warning:last-child {
    border-left-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--warning:not(:first-child):not(:last-child) {
    border-left-color: rgba(255, 255, 255, .5);
    border-right-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--danger:first-child {
    border-right-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--danger:last-child {
    border-left-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--danger:not(:first-child):not(:last-child) {
    border-left-color: rgba(255, 255, 255, .5);
    border-right-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--info:first-child {
    border-right-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--info:last-child {
    border-left-color: rgba(255, 255, 255, .5)
}

.el-button-group .el-button--info:not(:first-child):not(:last-child) {
    border-left-color: rgba(255, 255, 255, .5);
    border-right-color: rgba(255, 255, 255, .5)
}